{$input->textBefore}
<select class="fg_selectField" style="{$input->style}" {if $input->id}id="{$input->id}"{/if} name="{$input->name}" {$input->getEventsHtml()}>
{foreach item=i from=$input->values}<option value="{$i.key}" {if $i.style}style="{$i.style}"{/if} {if $i.disabled}disabled="disabled"{/if} {if $i.selected}selected="selected"{/if}>{if $i.level > 0}{section name=i loop=$i.level}&nbsp;&nbsp;&nbsp;&nbsp;{/section}{/if}{$i.value}</option>{/foreach}
</select>
{$input->textAfter}